package com.example.walletmodule.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.walletmodule.entity.ConsumptionDTO;
import com.example.walletmodule.entity.WalletDetailsEntity;
import com.example.walletmodule.util.CommonResult;

import java.util.List;
import java.util.Map;

/**
 * 钱包明细表
 *
 * @author wangqiao
 * @date 2023-02-21 16:40:42
 */
public interface WalletDetailsService extends IService<WalletDetailsEntity> {

	/**
	 * @method comsuption
	 * @author wangqiao
	 * @date 2023/2/22 10:15
	 * @description  钱包消费接口
	 * @param consumptionDTO
	 * @return Boolean
	 *
	 */
	CommonResult<Boolean> comsuption(ConsumptionDTO consumptionDTO);

	/***
	 * @method queryWalletDetails
	 * @author wangqiao
	 * @date 2023/2/22 11:29
	 * @description 钱包消费明细查询
	 * @param walletDetailsEntity
	 * @return CommonResult<WalletDetailsEntity>
	 *
	 */
	CommonResult<List<WalletDetailsEntity>> queryWalletDetails(WalletDetailsEntity walletDetailsEntity);

	/***
	 * @method refundMoney
	 * @author wangqiao
	 * @date 2023/2/22 11:43
	 * @description 退款接口
	 * @param consumptionDTO
	 * @return CommonResult<Boolean>
	 *
	 */
	CommonResult<Boolean> refundMoney(ConsumptionDTO consumptionDTO);
}

